<?php
/**
 * @author Eureka
 */
class Tags extends CActiveRecord
{

	public static function model($className = __CLASS__)
	{
		return parent::model($className);
	}

	public function tableName()
	{
		return 'tags';
	}
	
	public function relations()
	{
		return array(
			'tags' => array(
				self::MANY_MANY, 'ItemTags', 'item_tags(tag_id, item_id)'
			),
		);
	}
}